package com.logger.layouts;

import com.logger.LogMessage;
import com.logger.common.Utils;

/**
 * 直接打印字符串
 * Created by chenxunlin01 on 2016/1/17.
 */

public class SimpleLayout extends ALayout {
    @Override
    public String format(LogMessage message) {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(message.getMessage());
        stringBuilder.append(Utils.LINE_RETURN);
        return stringBuilder.toString();
    }
}
